package com.jiankangjin.appspos.controller;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.jiankangjin.appspos.services.ValidateServices;
import com.jiankangjin.appspos.vo.UpdateValidateImgVo;

@Controller
public class ValidateController {
	private static final transient Log logger = LogFactory.getLog(ValidateController.class);
	
	@Autowired
	private ValidateServices validateService;

	/**
	 * 更新验证码
	 */
	@RequestMapping(value="/update_validate_img", method=RequestMethod.POST)
	@ResponseBody
	public UpdateValidateImgVo updateValidateImg(){
		logger.info("更新验码接口");
		return validateService.updateValidateImg();
	}
}
